cc.Class({
    extends: cc.Component,

    properties: {
        loadBar: cc.ProgressBar,
    },

    onLoad () {
        cc.director.preloadScene("main",
            (completedCount,totalCount,item)=>{
                this.loadBar.progress = completedCount / totalCount;
            },
            (error, asset)=>{
                cc.director.loadScene("main");
            }
        );
    },

    start () {

    },

    update (dt) {},
});
